package com.intelligentclass.repositories;

import com.intelligentclass.entity.HomeworkIntroduce;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface HomeworkIntroduceRepository extends JpaRepository<HomeworkIntroduce, Integer> {

    @Query("select h.introduce from HomeworkIntroduce h where h.hid = :hid")
    String getHomeworkIntroduce(@Param("hid") int hid);
}
